package demo;

public class HomeWork01 {
	public static void main(String[] args){
		int num=456;
		int sum=0;
		System.out.println(num/100);
		System.out.println(num/10%10);
		System.out.println(num%10);
		sum=num/100+(num/10)%10+num%10;
		System.out.println(sum);
	}

}
